package com.woniuxy.entity;

/**
 * @author: Date: 2021/11/11:12:15
 * Description:
 */
public class American implements Person{
    String name;
    int age,sex;
    Person person;

    public American(String name, int age, int sex, Person person) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.person = person;
    }

    @Override
    public String toString() {
        return "American{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", person=" + person +
                '}';
    }

    @Override

    public void eat() {
        System.out.println("美國人吃飯");
    }
}
